package JAVA_LianXi_50;

public class flowerdemo {
	public static void main(String[] args) {
		int gg;int ss;int bb;int sum;
		for(int i=100;i<=999;i++) {
			gg=(i%100)%10;
			ss=(i%100)/10;
			bb=i/100;
			sum=gg*gg*gg+ss*ss*ss+bb*bb*bb;
			if(sum==i) {
				System.out.println(i+" ");
			}
		}
	}

}
